package com.mask.common.core.exception;

import lombok.Getter;

/**
 * 业务异常
 */
@Getter
public class ServiceException extends RuntimeException {
    
    private final int code;
    
    public ServiceException(String message) {
        super(message);
        this.code = 500;
    }
    
    public ServiceException(int code, String message) {
        super(message);
        this.code = code;
    }
}